import React from "react";
import {Table} from 'antd';

export default function TableDetail (props){
    const { data ,columns,total,current} = props;

    return(
        <Table
            bordered={true}
            columns={columns}
            dataSource={data}
            pagination={
                {
                    current:current,
                    pageSize: 10,
                    onChange: props.paginationChange,
                    total:total
                }
            }
        />
    )

}